import {http} from "@/service/http";
import { PutItem } from "@/types/minecraft";


/**
 * 健康检查接口
 */
export const getMcHealth = () => {
  return http({
    url: '/mc/Get'
  })
}


/**
 * kook 绑定
 */
export  const createMcKookBind = (Name: string, Uuid: string) => {
  return http({
    method: "POST",
    url: '/mc/KookBind',
    data: {
      Name, Uuid
    }
  })
}

/**
 * kook 绑定
 */
export const createPutItem = (item: PutItem) => {
  return http({
    method: "POST",
    url: '/mc/PutItem',
    data: {
      ...item
    }
  })
}
